package com.lijing.CircleArrayQueue;

public class CircleArrayQueueTest {
    public static void main(String[] args) {
        CircleArrayQueue circleArrayQueue = new CircleArrayQueue(4);
        circleArrayQueue.addArrayQueue(10);
        circleArrayQueue.addArrayQueue(20);
        circleArrayQueue.addArrayQueue(30);
        circleArrayQueue.showParam();
        circleArrayQueue.getParam();
        circleArrayQueue.showParam();
        System.out.println(circleArrayQueue.peekQueue());
        circleArrayQueue.addArrayQueue(40);
        circleArrayQueue.showParam();
        circleArrayQueue.getParam();
        circleArrayQueue.addArrayQueue(50);
        circleArrayQueue.showParam();
        int rear = circleArrayQueue.getRear();
        System.out.println(rear);
    }
}
